package cn.virens.database.serviceimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.virens.database.common.BaseServiceImpl;
import cn.virens.database.mysql.mapper.BaseAreaMapper;
import cn.virens.database.mysql.model.BaseArea;
import cn.virens.database.service.BaseAreaService;

@Service
public class BaseAreaServiceImpl extends BaseServiceImpl<BaseArea, BaseAreaMapper> implements BaseAreaService {
	@Autowired
	public BaseAreaServiceImpl(BaseAreaMapper mBaseMapper) {
		super(mBaseMapper);
	}

	@Override
	public List<Map<String, Object>> selectForSelect2(String code, String name) {
		return mBaseMapper.selectForSelect2(code, name);
	}

	@Override
	protected Class<BaseArea> getGenericSuperclass() {
		return BaseArea.class;
	}
}
